#include <stdio.h>
void reverse(char * letter);
int main()
 {
    char num[50];
    int i;
    while(num[i]!='\0')
    {
        scanf("%c",&num[i]);
        i++;
    }
  reverse(num);
    return 0;
}
void reverse(char * letter)
{
    char * start=letter;
    while(*letter!='\0')
    {
        letter++;
    }
    while(letter>=start)
    {
        printf("%c",*letter);
        letter--;
    }
}